#ifndef COLLISION_OPTIONS_PANEL_H
#define COLLISION_OPTIONS_PANEL_H

#include <QWidget>
#include <QtGui>
#include <QObject>

#include "defines/global.h"

class CollisionOptionsPanel : public QWidget {
	Q_OBJECT

    public:
        CollisionOptionsPanel(QWidget * = 0);
        ~CollisionOptionsPanel(){};

        double getDistanceError() {return distanceError;};
        double getDampingFactor() {return dampingFactor;};
        bool getActive() {return active;};

    signals:
        void updateDistanceError();
        void updateDampingFactor();
        void updateActive();

    private slots:
        void changeDistanceError(double _d) {distanceError = _d; emit updateDistanceError();};
        void changeDampingFactor(double _d) {dampingFactor = _d; emit updateDampingFactor();};
        void changeActive(bool _a) {active = _a; emit updateActive();};

    private:
        bool active;
        double distanceError, dampingFactor;
};

#endif


